package com.wsj.listen;

import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

/**
 * description:测试事件
 * @author yang
 * @date 2019/4/16 14:00
 */
public class TestEvent extends ApplicationEvent {

  private String msg;

  public TestEvent(Object source) {
    super(source);
  }

  public TestEvent(Object source, String msg) {
    super(source);
    this.msg = msg;
  }

  public void print() {
    System.out.println(msg);
  }
}
